﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
namespace HA.ModFlow.Controls.Converts
{
    class ConvertToIsBool:IValueConverter 
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            HA.Data.ConcType type = (HA.Data.ConcType)value;
            if (type == HA.Data.ConcType.Constant)
            {
                return System.Windows. Visibility.Hidden; 
            }
            else
            {
                return System.Windows.Visibility.Visible; 
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
